package cn.xiuxius.askbox.pojo.dto.add;

import cn.xiuxius.askbox.common.constant.AnswerState;
import cn.xiuxius.askbox.common.constant.DataState;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaoxiu
 * @since 2024-07-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("askbox_ask")
@ApiModel(value="AskAddDTO对象", description="")
public class AskAddDTO implements Serializable {

    @NotBlank(message = "用户uuid不能为空")
    private String userUuid;

    @NotBlank(message = "回复邮箱不能为空")
    @Email(message = "邮箱格式错误")
    private String replyEmail;

    @NotBlank(message = "内容不能为空")
    private String content;

}
